home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dirut
/
fichici.zip
/
FICHICI.DOC
< prev
next >
Wrap
Text File
|
1993-07-08
|
1KB
|
45 lines
FICHICI 1.0 FILEDATE CHECKING UTILITY FICHICI 1.0
NAME
fichici (is file here?) - checks specified pathname for files
matching the current system date
SYNTAX
fichici PATHNAME
ex. fichici C:\USER\TMP\*.*
DESCRIPTION
This is a file that searches the specified pathname for files
matching the current system date. This utility is designed to be
used in a DOS batch file, hence the returning errorcodes.
First the system date is obtained.
Then files in the specified path are accessed one by one, and their
dates compared with the system date.
If there is a match, ERRORLEVEL returns 0.
Otherwise, ERRORLEVEL returns 1.
SAMPLE BATCH FILE
access N:DISKNAME@SERVER
rem On a network, first make sure you are linked to the required disk.
fichici N:\UTILS\TesTIng\docs\*.*
rem OR
fichici N:\UTILS\TesTIng\docs\*.c
rem Note the use of mixed case.
rem You must specify the path using the described syntax.
rem Wildcards are permitted, as long as they have valid DOS structure,
rem as in the examples above.
if errorlevel 1 echo Files created today.
if errorlevel 0 echo No files created today.
rem Test errorlevels in reverse, since everything less than
rem the current errorlevel is true.